﻿@model UserInfo 
<div class="model-display">
    <div class="layout-onecolumn">
        <div class="display-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Name)
        </div>
    </div>
    <div class="layout-onecolumn">
        <div class="display-label">
            @Html.LabelFor(model => model.StaffCode)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.StaffCode)
        </div>
    </div>
    <div class="layout-onecolumn">
        <div class="display-label">
            @Html.LabelFor(model => model.StaffNameCN)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.StaffNameCN)
        </div>
    </div>
    <div class="layout-onecolumn">
        <div class="display-label">
            @Html.LabelFor(model => model.StaffNameEN)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.StaffNameEN)
        </div>
    </div>
    <div class="layout-onecolumn">
        <div class="display-label">
            @Html.LabelFor(model => model.Inner_Email)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Inner_Email)
        </div>
    </div>
    <div class="layout-onecolumn">
        <div class="display-label">
            @Html.LabelFor(model => model.Exter_Email)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Exter_Email)
        </div>
    </div>
    <div class="layout-onecolumn">
        <div class="display-label">
            @Html.LabelFor(model => model.CompanyNo)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.CompanyNo)
        </div>
    </div>
    <div class="layout-onecolumn">
        <div class="display-label">
            @Html.LabelFor(model => model.Department)
        </div>
        <div class="display-field">
            @Model.Department
        </div>
    </div>
    <div class="layout-onecolumn">
        <div class="display-label">
            @Html.LabelFor(model => model.CostCenter)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.CostCenter)
        </div>
    </div>
    <div class="layout-onecolumn">
        <div class="display-label">
            @Html.LabelFor(model => model.WorkCenter)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.WorkCenter)
        </div>
    </div>
    <div class="layout-onecolumn">
        <div class="display-label">
            @Html.LabelFor(model => model.Phone)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Phone)
        </div>
    </div>
    <div class="layout-onecolumn">
        <div class="display-label">
            @Html.LabelFor(model => model.Gender)
        </div>
        <div class="display-field">
            @(Model.Gender == "M" ? "男" : "女")
        </div>
    </div>
    <div class="layout-onecolumn">
        <div class="display-label">
            @Html.LabelFor(model => model.Mobile)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Mobile)
        </div>
    </div>
    <div class="layout-twocolumn">
        <div class="display-label">
            @Html.LabelFor(model => model.Roles)
        </div>
        <div class="display-field">
            @if (Model != null && Model.Roles != null)
            {
                @string.Join(",", Model.Roles.Select(m =>m.RoleName));
            }
        </div>
    </div>
</div>
